<?
	if (!defined('DORB')) die('Security: Verzoek om script uit te voeren geweigerd (onveilige bron).');
	
	
	/*
	
		$('tr').click(function() {
		
			window.location = 'gegevens-aanpassen?user=' + $(this).find('td:contains("@").text()';
		
		});
	
		$r = $mysqli->query(select * from user wher eemail = $_GET['user'])
		
		$userdata = $r->fetch_assoc();
		
		;
	
	*/
	
	
	$ProfileForm = new Form('ProfileForm');
	
	$ProfileForm ->add(new FormElement('E-mail','read-only',$context['user']['email']));
	
	$ProfileForm->add(new FormElement('Oude wachtwoord','password'));
	$ProfileForm->add(new FormElement('Nieuw wachtwoord','password'));
	$ProfileForm->add(new FormElement('Nieuw wachtwoord ter herhaling','password'));
	
	$ProfileForm->add(new FormElement('Bedrijfsnaam','text',$context['user']['naam']));
	$ProfileForm->add(new FormElement('Bedrijfslogo','file'));
	
	
	$ProfileForm->add(new FormElement('Telefoon','text',$context['user']['telefoon']));
	$ProfileForm->add(new FormElement('Taal','radio',$context['user']['taal'],null,null,
	
		array(
			'1' => 'Nederlands',
			'2' => 'Engels'
		)
	
	));
	
	
	
	// ...
	
	
	require_once('handler.php');
	echo menu();
?>
<div id="content-container" >
	<div class="content">
		<? getLastFormResultHTML() ?>
		<? $ProfileForm->show() ?>

	</div>
</div>